package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * author： ccm
 * time： 2017/2/14.
 * description：
 */

public class ComboShopDetailBean implements Parcelable {


    /**
     * code : 2000
     * data : {"productEntity":{"id":"b9be18c728eb44fcb19b4ba610cf736d","storedId":"store1489556529390aP4u","name":"RIO鸡尾酒","model":null,"size":null,"year":"2016年","material":null,"color":null,"coverKey":"http://file.joplus.cn/2017-06-07/2017060708070341902048.png","price":13,"briefIntroduce":"RIO介绍RIO介绍RIO介绍RIO介绍RIO","stockNumber":2995,"status":"1","contentKey":"http://test.joplus.cn/crm/#!/HermesList","createdDatetime":1496837234000,"updatedDatetime":1496837340000,"deliveryTime":null,"isSpecialEdition":1,"oneSentence":"RIO介绍","pricingType":"0","chateau":"上海","productionPlace":"中国","brut":"干红","detailPicList":["http://file.joplus.cn/2017-06-07/2017060708071142406326.png"],"type":2,"indicativePrice":19.9}}
     * message : 获取成功
     */

    private String code;
    private DataBean data;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean implements Parcelable {
        /**
         * productEntity : {"id":"b9be18c728eb44fcb19b4ba610cf736d","storedId":"store1489556529390aP4u","name":"RIO鸡尾酒","model":null,"size":null,"year":"2016年","material":null,"color":null,"coverKey":"http://file.joplus.cn/2017-06-07/2017060708070341902048.png","price":13,"briefIntroduce":"RIO介绍RIO介绍RIO介绍RIO介绍RIO","stockNumber":2995,"status":"1","contentKey":"http://test.joplus.cn/crm/#!/HermesList","createdDatetime":1496837234000,"updatedDatetime":1496837340000,"deliveryTime":null,"isSpecialEdition":1,"oneSentence":"RIO介绍","pricingType":"0","chateau":"上海","productionPlace":"中国","brut":"干红","detailPicList":["http://file.joplus.cn/2017-06-07/2017060708071142406326.png"],"type":2,"indicativePrice":19.9}
         */

        private ProductEntityBean productEntity;

        public ProductEntityBean getProductEntity() {
            return productEntity;
        }

        public void setProductEntity(ProductEntityBean productEntity) {
            this.productEntity = productEntity;
        }

        public static class ProductEntityBean implements Parcelable {
            /**
             * id : b9be18c728eb44fcb19b4ba610cf736d
             * storedId : store1489556529390aP4u
             * name : RIO鸡尾酒
             * model : null
             * size : null
             * year : 2016年
             * material : null
             * color : null
             * coverKey : http://file.joplus.cn/2017-06-07/2017060708070341902048.png
             * price : 13
             * briefIntroduce : RIO介绍RIO介绍RIO介绍RIO介绍RIO
             * stockNumber : 2995
             * status : 1
             * contentKey : http://test.joplus.cn/crm/#!/HermesList
             * createdDatetime : 1496837234000
             * updatedDatetime : 1496837340000
             * deliveryTime : null
             * isSpecialEdition : 1
             * oneSentence : RIO介绍
             * pricingType : 0
             * chateau : 上海
             * productionPlace : 中国
             * brut : 干红
             * detailPicList : ["http://file.joplus.cn/2017-06-07/2017060708071142406326.png"]
             * type : 2
             * indicativePrice : 19.9
             */

            private String id;
            private String storedId;
            private String name;
            private String model;
            private String size;
            private String year;
            private String material;
            private String color;
            private String coverKey;
            private String price;
            private String briefIntroduce;
            private String stockNumber;
            private String status;
            private String contentKey;
            private String createdDatetime;
            private String updatedDatetime;
            private String deliveryTime;
            private String isSpecialEdition;
            private String oneSentence;
            private String pricingType;
            private String chateau;
            private String productionPlace;
            private String brut;
            private String type;
            private String indicativePrice;
            private List<String> detailPicList;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getStoredId() {
                return storedId;
            }

            public void setStoredId(String storedId) {
                this.storedId = storedId;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getModel() {
                return model;
            }

            public void setModel(String model) {
                this.model = model;
            }

            public String getSize() {
                return size;
            }

            public void setSize(String size) {
                this.size = size;
            }

            public String getYear() {
                return year;
            }

            public void setYear(String year) {
                this.year = year;
            }

            public String getMaterial() {
                return material;
            }

            public void setMaterial(String material) {
                this.material = material;
            }

            public String getColor() {
                return color;
            }

            public void setColor(String color) {
                this.color = color;
            }

            public String getCoverKey() {
                return coverKey;
            }

            public void setCoverKey(String coverKey) {
                this.coverKey = coverKey;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getBriefIntroduce() {
                return briefIntroduce;
            }

            public void setBriefIntroduce(String briefIntroduce) {
                this.briefIntroduce = briefIntroduce;
            }

            public String getStockNumber() {
                return stockNumber;
            }

            public void setStockNumber(String stockNumber) {
                this.stockNumber = stockNumber;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getContentKey() {
                return contentKey;
            }

            public void setContentKey(String contentKey) {
                this.contentKey = contentKey;
            }

            public String getCreatedDatetime() {
                return createdDatetime;
            }

            public void setCreatedDatetime(String createdDatetime) {
                this.createdDatetime = createdDatetime;
            }

            public String getUpdatedDatetime() {
                return updatedDatetime;
            }

            public void setUpdatedDatetime(String updatedDatetime) {
                this.updatedDatetime = updatedDatetime;
            }

            public String getDeliveryTime() {
                return deliveryTime;
            }

            public void setDeliveryTime(String deliveryTime) {
                this.deliveryTime = deliveryTime;
            }

            public String getIsSpecialEdition() {
                return isSpecialEdition;
            }

            public void setIsSpecialEdition(String isSpecialEdition) {
                this.isSpecialEdition = isSpecialEdition;
            }

            public String getOneSentence() {
                return oneSentence;
            }

            public void setOneSentence(String oneSentence) {
                this.oneSentence = oneSentence;
            }

            public String getPricingType() {
                return pricingType;
            }

            public void setPricingType(String pricingType) {
                this.pricingType = pricingType;
            }

            public String getChateau() {
                return chateau;
            }

            public void setChateau(String chateau) {
                this.chateau = chateau;
            }

            public String getProductionPlace() {
                return productionPlace;
            }

            public void setProductionPlace(String productionPlace) {
                this.productionPlace = productionPlace;
            }

            public String getBrut() {
                return brut;
            }

            public void setBrut(String brut) {
                this.brut = brut;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getIndicativePrice() {
                return indicativePrice;
            }

            public void setIndicativePrice(String indicativePrice) {
                this.indicativePrice = indicativePrice;
            }

            public List<String> getDetailPicList() {
                return detailPicList;
            }

            public void setDetailPicList(List<String> detailPicList) {
                this.detailPicList = detailPicList;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.id);
                dest.writeString(this.storedId);
                dest.writeString(this.name);
                dest.writeString(this.model);
                dest.writeString(this.size);
                dest.writeString(this.year);
                dest.writeString(this.material);
                dest.writeString(this.color);
                dest.writeString(this.coverKey);
                dest.writeString(this.price);
                dest.writeString(this.briefIntroduce);
                dest.writeString(this.stockNumber);
                dest.writeString(this.status);
                dest.writeString(this.contentKey);
                dest.writeString(this.createdDatetime);
                dest.writeString(this.updatedDatetime);
                dest.writeString(this.deliveryTime);
                dest.writeString(this.isSpecialEdition);
                dest.writeString(this.oneSentence);
                dest.writeString(this.pricingType);
                dest.writeString(this.chateau);
                dest.writeString(this.productionPlace);
                dest.writeString(this.brut);
                dest.writeString(this.type);
                dest.writeString(this.indicativePrice);
                dest.writeStringList(this.detailPicList);
            }

            public ProductEntityBean() {
            }

            protected ProductEntityBean(Parcel in) {
                this.id = in.readString();
                this.storedId = in.readString();
                this.name = in.readString();
                this.model = in.readString();
                this.size = in.readString();
                this.year = in.readString();
                this.material = in.readString();
                this.color = in.readString();
                this.coverKey = in.readString();
                this.price = in.readString();
                this.briefIntroduce = in.readString();
                this.stockNumber = in.readString();
                this.status = in.readString();
                this.contentKey = in.readString();
                this.createdDatetime = in.readString();
                this.updatedDatetime = in.readString();
                this.deliveryTime = in.readString();
                this.isSpecialEdition = in.readString();
                this.oneSentence = in.readString();
                this.pricingType = in.readString();
                this.chateau = in.readString();
                this.productionPlace = in.readString();
                this.brut = in.readString();
                this.type = in.readString();
                this.indicativePrice = in.readString();
                this.detailPicList = in.createStringArrayList();
            }

            public static final Parcelable.Creator<ProductEntityBean> CREATOR = new Parcelable.Creator<ProductEntityBean>() {
                @Override
                public ProductEntityBean createFromParcel(Parcel source) {
                    return new ProductEntityBean(source);
                }

                @Override
                public ProductEntityBean[] newArray(int size) {
                    return new ProductEntityBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeParcelable(this.productEntity, flags);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.productEntity = in.readParcelable(ProductEntityBean.class.getClassLoader());
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.code);
        dest.writeParcelable(this.data, flags);
        dest.writeString(this.message);
    }

    public ComboShopDetailBean() {
    }

    protected ComboShopDetailBean(Parcel in) {
        this.code = in.readString();
        this.data = in.readParcelable(DataBean.class.getClassLoader());
        this.message = in.readString();
    }

    public static final Parcelable.Creator<ComboShopDetailBean> CREATOR = new Parcelable.Creator<ComboShopDetailBean>() {
        @Override
        public ComboShopDetailBean createFromParcel(Parcel source) {
            return new ComboShopDetailBean(source);
        }

        @Override
        public ComboShopDetailBean[] newArray(int size) {
            return new ComboShopDetailBean[size];
        }
    };
}
